package com.joven.shelltest.dto;

import com.joven.shelltest.annotation.SensitiveSimple;
import lombok.Data;

import java.io.Serializable;

/**
 * @author wzj
 * @since 2024/11/4 9:00
 */
@Data
public class EmployeeDto implements Serializable {
    private static final long serialVersionUID = 3111357938166117626L;

    private String name;
    private Double salary;
    private String department;
    @SensitiveSimple(start = 6, end = 4)
    private String idCard;


    public EmployeeDto(String name, Double salary, String department) {
        this.name = name;
        this.salary = salary;
        this.department = department;
    }

    public EmployeeDto() {

    }

    public EmployeeDto(String name, Double salary) {
        this.name = name;
        this.salary = salary;
    }
}
